package com.example.demo.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

//指定数据库表名称
@Data
@TableName(value = "student")
public class Student {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    //指定数据字段名称
    @TableField(value = "student_name")
    private String studentName;
    private String sex;
    private String studentId;
    private String className;
    private String dorm;
}
